<?php $this->load->view('administrator/header_view')?>	

    <div id="main">
    	<span style="display:inline-block;float:right"><?php echo anchor('administrator/category/add','Add')?></span><br />
    	<table>
        	<tr>
                <th><?php echo $this->lang->line('category_name')?></th>
                <th><?php echo $this->lang->line('parent')?></th>
                <th><?php echo $this->lang->line('action')?></th>
            </tr>
	<?php	
		if ($category_info) {				
        	foreach($category_info as $row){
	?>
                <tr>
                    <td><?php echo $row['name']?></td>
                    <td><?php //echo $row['url_rewrite']?></td>
                    <td><?php echo anchor('administrator/category/delete/'.$row['id'],'Delete').' | '. anchor('administrator/category/edit/'.$row['id'],'Edit')?></td>
                </tr>
      <?php }}?>
        </table>
    </div>
    
<?php $this->load->view('administrator/footer_view')?>